/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.yuhanginfo.modules.sys.entity;

import java.math.BigDecimal;
import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.yuhanginfo.common.persistence.DataEntity;

/**
 * 订单详情Entity
 * @author yangs
 * @version 2017-09-19
 */
public class InvoiceInfo extends DataEntity<InvoiceInfo> {
	
	private static final long serialVersionUID = 1L;
	private String userId;		// 用户id
	private String ordersCode;		// 订单号
	private String code;		// 还款编号,系统生成
	private Integer payType;		// 付款来源：1线上付款,2线下付款
	private String orderId;		// 订单id
	private BigDecimal money;		// 开票金额
	private String company;		// 公司名称
	private String address;		// 开票地址
	private Integer status;		// 开票状态:0未开票，1已开票
	private Integer invoiceType;		// 发票类型
	private String receiveName;		// 姓名
	private String receiveAddress;		// 邮寄地址
	private String receivePhone;		// 联系电话
	private String account;		// 账户
	private String blank;		// 开户银行
	private String dutyCode;		// 纳税人识别号
	private String transactionCode;
	private String userType;
	private String userName;
	private Date startTime;
	private Date endTime;
	private String queryCode;
	private Integer queryStatus;
	private Integer queryInvoiceType;
	private String queryUserName;
	private Integer queryUserType;
	private String invoiceTitle;
	
	
	public InvoiceInfo() {
		super();
	}

	public InvoiceInfo(String id){
		super(id);
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Length(min=0, max=30, message="订单号长度必须介于 0 和 30 之间")
	public String getOrdersCode() {
		return ordersCode;
	}

	public void setOrdersCode(String ordersCode) {
		this.ordersCode = ordersCode;
	}
	
	@Length(min=0, max=50, message="还款编号,系统生成长度必须介于 0 和 50 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=11, message="付款来源：1线上付款,2线下付款长度必须介于 0 和 11 之间")
	public Integer getPayType() {
		return payType;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}
	
	@Length(min=0, max=11, message="订单id长度必须介于 0 和 11 之间")
	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	
	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}
	
	@Length(min=0, max=50, message="公司名称长度必须介于 0 和 50 之间")
	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}
	
	@Length(min=0, max=255, message="开票地址长度必须介于 0 和 255 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=11, message="开票状态:0未开票，1已开票长度必须介于 0 和 11 之间")
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	
	@Length(min=0, max=11, message="发票类型长度必须介于 0 和 11 之间")
	public Integer getInvoiceType() {
		return invoiceType;
	}

	public void setInvoiceType(Integer invoiceType) {
		this.invoiceType = invoiceType;
	}
	
	@Length(min=0, max=50, message="姓名长度必须介于 0 和 50 之间")
	public String getReceiveName() {
		return receiveName;
	}

	public void setReceiveName(String receiveName) {
		this.receiveName = receiveName;
	}
	
	@Length(min=0, max=255, message="邮寄地址长度必须介于 0 和 255 之间")
	public String getReceiveAddress() {
		return receiveAddress;
	}

	public void setReceiveAddress(String receiveAddress) {
		this.receiveAddress = receiveAddress;
	}
	
	@Length(min=0, max=13, message="联系电话长度必须介于 0 和 13 之间")
	public String getReceivePhone() {
		return receivePhone;
	}

	public void setReceivePhone(String receivePhone) {
		this.receivePhone = receivePhone;
	}
	
	@Length(min=0, max=50, message="账户长度必须介于 0 和 50 之间")
	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}
	
	@Length(min=0, max=50, message="开户银行长度必须介于 0 和 50 之间")
	public String getBlank() {
		return blank;
	}

	public void setBlank(String blank) {
		this.blank = blank;
	}
	
	@Length(min=0, max=50, message="纳税人识别号长度必须介于 0 和 50 之间")
	public String getDutyCode() {
		return dutyCode;
	}

	public void setDutyCode(String dutyCode) {
		this.dutyCode = dutyCode;
	}

	public String getTransactionCode() {
		return transactionCode;
	}

	public void setTransactionCode(String transactionCode) {
		this.transactionCode = transactionCode;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getQueryCode() {
		return queryCode;
	}

	public void setQueryCode(String queryCode) {
		this.queryCode = queryCode;
	}

	public Integer getQueryStatus() {
		return queryStatus;
	}

	public void setQueryStatus(Integer queryStatus) {
		this.queryStatus = queryStatus;
	}

	public Integer getQueryInvoiceType() {
		return queryInvoiceType;
	}

	public void setQueryInvoiceType(Integer queryInvoiceType) {
		this.queryInvoiceType = queryInvoiceType;
	}

	public String getQueryUserName() {
		return queryUserName;
	}

	public void setQueryUserName(String queryUserName) {
		this.queryUserName = queryUserName;
	}

	public Integer getQueryUserType() {
		return queryUserType;
	}

	public void setQueryUserType(Integer queryUserType) {
		this.queryUserType = queryUserType;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getInvoiceTitle() {
		return invoiceTitle;
	}

	public void setInvoiceTitle(String invoiceTitle) {
		this.invoiceTitle = invoiceTitle;
	}
	
}